﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace MobileGIS.Geometries
{
    public class LineString:Geometry
    {
        private List<LinePart> m_parts;

        public LineString()
        {
            m_parts = new List<LinePart>();
            m_parts.Add(new LinePart());
        }

        public LineString(int partCount)
        {
            m_parts = new List<LinePart>(partCount);
        }

        public List<LinePart> Parts 
        {
            get { return m_parts; }
        }

        public void AddPoint(double x, double y, int index)
        {
        }

        public void AddPoint(double x, double y)
        {
            m_parts[0].AddPoint(x,y);
        }

        public override BoundingBox Envelop
        {
            get { throw new NotImplementedException(); }
        }

        




        
    }
}
